import http from '../http'

const api = '/provider/fiskaly'

export function config(data = null) {
  return data ? http.post(api, data) : http.get(api)
}

export function client() {
  return http.get(api + '/client')
}

export function addClient() {
  return http.post(api + '/client')
}

export function updateClient(id) {
  return http.put(api + '/client', { id })
}

export function signer() {
  return http.get(api + '/signer')
}

export function addSigner() {
  return http.post(api + '/signer')
}

export function tax() {
  return http.get(api + '/tax')
}